/*
 * @Author: quit
 * @Date: 2021-11-16 10:16:13
 * @LastEditTime: 2021-12-29 15:39:12
 * @Descripttion: 后台管理路由
 */
/* 后台管理布局组件 */
import BMLayout from '@/layout/BMAdmin'
// 后台管理路由表
export default [
  { path: '/BmHome', redirect: '/ProjectManagement' },

  {
    path: '/ProjectManagement', // 路由地址
    component: BMLayout,
    // name: 'ProjectManagement', // 当前路由地址一级模块名,后期可以用来做页面鉴权使用
    children: [
      {
        path: '', // 为空则为默认路由,将会显示一级局部二级路由页面
        component: () => import('@/views/BmViews/ProjectManagement'),
        name: 'ProjectManagement',
        // 路由源信息(存储信息可以是任意内容)
        meta: { title: '项目管理', icon: 'tree-table', affix: true }
      }
    ]
  },

  {
    path: '/UserManagement',
    component: BMLayout,
    // name: 'UserManagement',
    children: [
      {
        path: '',
        component: () => import('@/views/BmViews/UserManagement'),
        name: 'UserManagement',
        meta: { title: '用户管理', icon: 'user' }
      }
    ]
  },

  {
    path: '/UserProjectManagement',
    component: BMLayout,
    //  name: 'UserProjectManagement',
    children: [
      {
        path: '',
        component: () => import('@/views/BmViews/UserProjectManagement'),
        name: 'UserProjectManagement',
        meta: { title: '用户项目管理', icon: 'tree' }
      }
    ]
  },

  {
    path: '/SubsysManager',
    // name: 'SubsysManager',
    component: BMLayout,
    children: [
      {
        path: '',
        component: () => import('@/views/BmViews/SubsysManager'),
        name: 'SubsysManager',
        meta: { title: '类型管理', icon: 'type' }
      }
    ]
  },

  {
    path: '/ThresholdManagements',
    component: BMLayout,
    name: 'ThresholdManagements',
    meta: { title: '阈值管理', icon: 'dashboard' },
    children: [
      {
        path: 'index',
        component: () => import('@/views/BmViews/ThresholdManagement/index'),
        name: 'ThresholdManagement',
        meta: { title: '阈值管理', icon: 'dashboard' }
      },
      {
        path: 'ThresholdConfiguration',
        name: 'ThresholdConfiguration',
        component: () => import('@/views/BmViews/ThresholdManagement/ThresholdConfiguration'),
        meta: { title: '阈值配置', icon: 'setting' }
      }
    ]
  },

  {
    path: '/CollectionManagement',
    component: BMLayout,
    name: 'CollectionManagement',
    meta: { title: '采集管理', icon: 'clipboard' },
    children: [
      {
        path: 'CommunicationsDevices',
        component: () => import('@/views/BmViews/CollectionManagement/CommunicationsDevices'),
        name: 'CommunicationsDevices',
        meta: { title: '通讯设备', icon: 'whatsapp' }
      },
      {
        path: 'RegisterManagement',
        name: 'RegisterManagement',
        component: () => import('@/views/BmViews/CollectionManagement/RegisterManagement'),
        meta: { title: '寄存器管理', icon: 'storage' }
      }
    ]
  },

  {
    path: '/ProjectRecycling',
    // name: 'ProjectRecycling',
    component: BMLayout,
    children: [
      {
        path: '',
        component: () => import('@/views/BmViews/ProjectRecycling'),
        name: 'ProjectRecycling',
        meta: { title: '项目回收', icon: 'recycle' }
      }
    ]
  }
]
